﻿<phone:PhoneApplicationPage
    x:Class="Angerona.Views.ModCar"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:toolkit="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls.Toolkit"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True" d:DesignHeight="768" d:DesignWidth="480">

    <toolkit:TransitionService.NavigationInTransition>
        <toolkit:NavigationInTransition>
            <toolkit:NavigationInTransition.Backward>
                <toolkit:SlideTransition Mode="SlideDownFadeOut"/>
            </toolkit:NavigationInTransition.Backward>
            <toolkit:NavigationInTransition.Forward>
                <toolkit:SlideTransition Mode="SlideUpFadeIn"/>
            </toolkit:NavigationInTransition.Forward>
        </toolkit:NavigationInTransition>
    </toolkit:TransitionService.NavigationInTransition>
    <toolkit:TransitionService.NavigationOutTransition>
        <toolkit:NavigationOutTransition>
            <toolkit:NavigationOutTransition.Backward>
                <toolkit:SlideTransition Mode="SlideDownFadeOut"/>
            </toolkit:NavigationOutTransition.Backward>
            <toolkit:NavigationOutTransition.Forward>
                <toolkit:SlideTransition Mode="SlideDownFadeOut"/>
            </toolkit:NavigationOutTransition.Forward>
        </toolkit:NavigationOutTransition>
    </toolkit:TransitionService.NavigationOutTransition>

    <!--LayoutRoot is the root grid where all page content is placed-->
    <Grid x:Name="LayoutRoot" Background="Transparent">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <!--TitlePanel contains the name of the application and page title-->
        <StackPanel x:Name="TitlePanel" Grid.Row="0" Margin="12,17,0,28">
            <TextBlock x:Name="ApplicationTitle" Text="ANGERONA" Style="{StaticResource PhoneTextNormalStyle}"/>
            <TextBlock x:Name="PageTitle" Text="{Binding Path=LocalizedResources.modcar, Source={StaticResource LocalizedStrings}}" Margin="9,-7,0,0" Style="{StaticResource PhoneTextTitle1Style}" DataContext="{Binding}" />
        </StackPanel>

        <!--ContentPanel - place additional content here-->
        <Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
            <ScrollViewer>
                <StackPanel Orientation="Vertical" Visibility="Visible" FlowDirection="LeftToRight">
                    <Image x:Name="imageOfTheCar" Tap="imageOfCar_Tap_1" Source="/Img/AppIcons/pictureAdd_100_100.png" Width="400" Height="200" />
                    <TextBlock x:Name="Label_carname" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.carname, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <TextBox x:Name="carname" HorizontalAlignment="Right" FontSize="32" MinWidth="400" FlowDirection="RightToLeft" LostFocus="carname_LostFocus" />

                    <TextBlock x:Name="Label_carmanufacter" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.carmanufacter, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <TextBox x:Name="carmanufacter" HorizontalAlignment="Right" FontSize="32" MinWidth="400" FlowDirection="RightToLeft" />

                    <TextBlock x:Name="Label_carmodel" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.carmodel, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <TextBox x:Name="carmodel" HorizontalAlignment="Right" FontSize="32" MinWidth="400" FlowDirection="RightToLeft" DataContext="{Binding}" />

                    <TextBlock x:Name="Label_carfuel" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.carfuel, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <toolkit:ListPicker x:Name="carfuel" HorizontalAlignment="Right" MinWidth="376" FlowDirection="RightToLeft" FontSize="32"/>

                    <TextBlock x:Name="Label_carhorse" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.carhorse, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <TextBox x:Name="carhorse" InputScope="Number" HorizontalAlignment="Right" FontSize="32" MinWidth="400" FlowDirection="RightToLeft" DataContext="{Binding}" />

                    <TextBlock x:Name="Label_carkw" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.carkw, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <TextBox x:Name="carkw" InputScope="Number" HorizontalAlignment="Right" FontSize="32" MinWidth="400" FlowDirection="RightToLeft" DataContext="{Binding}" />

                    <TextBlock x:Name="Label_carvolume" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.carvolume, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <TextBox x:Name="carvolume" InputScope="Number" HorizontalAlignment="Right" FontSize="32" MinWidth="400" FlowDirection="RightToLeft" DataContext="{Binding}" />

                    <TextBlock x:Name="Label_carplate" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.carplate, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <TextBox x:Name="carplate" HorizontalAlignment="Right" FontSize="32" MinWidth="400" FlowDirection="RightToLeft" DataContext="{Binding}" />

                    <TextBlock x:Name="Label_carserial" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.carserial, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <TextBox x:Name="carserial" HorizontalAlignment="Right" FontSize="32" MinWidth="400" FlowDirection="RightToLeft" DataContext="{Binding}" />

                    <TextBlock x:Name="Label_carboughtdate" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.carboughtdate, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <toolkit:DatePicker x:Name="carboughtdate" HorizontalAlignment="Right" FontSize="32" MinWidth="400" FlowDirection="RightToLeft" />

                    <TextBlock x:Name="Label_carproductiondate" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.carproductiondate, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <toolkit:DatePicker x:Name="carproductiondate" HorizontalAlignment="Right" FontSize="32" MinWidth="400" FlowDirection="RightToLeft" />

                    <TextBlock x:Name="Label_carinitialkm" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.carinitialkm, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <TextBox x:Name="carinitialkm" InputScope="Number" HorizontalAlignment="Right" FontSize="32" MinWidth="400" FlowDirection="RightToLeft" DataContext="{Binding}" />

                    <TextBlock x:Name="Label_cartraveledkm" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.cartraveledkm, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <TextBox x:Name="cartraveledkm" InputScope="Number" HorizontalAlignment="Right" FontSize="32" MinWidth="400" FlowDirection="RightToLeft" DataContext="{Binding}" />

                    <TextBlock x:Name="Label_assurancecompany" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.assurancecompany, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <TextBox x:Name="assurancecompany" HorizontalAlignment="Right" FontSize="32" MinWidth="400" FlowDirection="RightToLeft" DataContext="{Binding}" />

                    <TextBlock x:Name="Label_assurancenumber" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.assurancenumber, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <TextBox x:Name="assurancenumber" HorizontalAlignment="Right" FontSize="32" MinWidth="400" FlowDirection="RightToLeft" DataContext="{Binding}" />

                    <TextBlock x:Name="Label_assurancedate" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.assurancedate, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <toolkit:DatePicker x:Name="assurancedate" HorizontalAlignment="Right" FontSize="32" MinWidth="400" FlowDirection="RightToLeft" />

                    <TextBlock x:Name="Label_bollodate" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.bollodate, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <toolkit:DatePicker x:Name="bollodate" HorizontalAlignment="Right" FontSize="32" MinWidth="400" FlowDirection="RightToLeft" />

                    <TextBlock x:Name="Label_revisiondate" Width="auto" Height="auto" HorizontalAlignment="Left" Text="{Binding Path=LocalizedResources.revisiondate, Source={StaticResource LocalizedStrings}}" FontSize="36" />
                    <toolkit:DatePicker x:Name="revisiondate" HorizontalAlignment="Right" FontSize="32" MinWidth="400" FlowDirection="RightToLeft" />

                </StackPanel>
            </ScrollViewer>

        </Grid>
    </Grid>

</phone:PhoneApplicationPage>